package com.ruoyi.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 回答对象 answer
 * 
 * @author ruoyi
 * @date 2025-09-11
 */
public class Answer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回答ID */
    private Integer id;

    /** 问题ID */
    @Excel(name = "问题ID")
    private Integer questionId;

    /** 回答用户ID */
    @Excel(name = "回答用户ID")
    private Integer userId;

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String content;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setQuestionId(Integer questionId) 
    {
        this.questionId = questionId;
    }

    public Integer getQuestionId() 
    {
        return questionId;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .toString();
    }
}
